package cn.flaty.views.web;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * 基础控制器
 * @author flatychen
 *
 */
public class BaseController   {
	
	/**
	 * 得到数据包装器
	 * 
	 * @author flatychen
	 * @date 2014-4-14
	 * @return
	 */
	protected final Map<String,Object> getMapWapper(){
		return new HashMap<String, Object>();
	}

	/**
	 * 得到WEB工程根路径
	 * @author flatychen
	 * @date 2014-4-18
	 * @param request
	 * @return
	 */
	protected final String getWebRootPath(HttpServletRequest request){
		return request.getServletContext().getRealPath("");
	}
}
